<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function fn(){

            console.log("伪数组",arguments);
            // 方式一： Array.from();预定义；

            // var arr = Array.from(arguments);
            // console.log("数组",arr);

            // 方式二：var 数组 =  [...伪数组];
            var arr = [...arguments];
            console.log("数组",arr);

            console.log([10,20,30]);

        }

        fn(1,2,3,4);




    </script>
</body>
</html>